import { createRouter, createWebHistory } from 'vue-router'
import Index from '../view/Index.vue'

const routes = [
  // {
  //   path: '*',
  //   name: '404',
  // },

  {
    path: '/',
    name: 'Index',
    component: Index,
  },
]

const router = createRouter({
  history: createWebHistory(window.__POWERED_BY_QIANKUN__ ? '/' : '/'),
  routes,
})

export default router
